<template>
    <div class="wrapper" :style="{flexDirection: flexDirection}">
        <image class="pic"></image>
        <text class="text">{{title}}</text>
    </div>
</template>

<script>
//    var styleObjectA = {
//        backgroundColor: textColor
//    }
    export default {

        props: {
            flexDirection: {
                type: String,
                default: 'column'
            },
            title: {
                type: String,
                default: '',
            }
        },
        components: {},
        data () {
            return {
//                flexDirection: 'column'
            }
        },
        methods: {},
        created () {

        }
    }
</script>

<style scoped>
    .wrapper {
        justify-content: center;
        align-items: center;
    }
    .pic {
        background-color: darkblue;
        width: 120px;
        height: 120px;

        border-width: 10px;
        border-style: solid;
        border-color: white;

        margin-left: 20px;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    .text {
        margin-left: 20px;
        font-size: 36px;
        color: white;
    }
</style>
